import request from "@/utils/request";

// 查询京东订单推送列表
export function listBizJdkyOrder(query) {
  return request({
    url: "/biz/bizJdkyOrder/list",
    method: "get",
    params: query
  });
}

// 查询京东订单推送详细
export function getBizJdkyOrder(id) {
  return request({
    url: "/biz/bizJdkyOrder/" + id,
    method: "get"
  });
}

// 新增京东订单推送
export function addBizJdkyOrder(data) {
  return request({
    url: "/biz/bizJdkyOrder",
    method: "post",
    data: data
  });
}

// 修改京东订单推送
export function updateBizJdkyOrder(data) {
  return request({
    url: "/biz/bizJdkyOrder",
    method: "put",
    data: data
  });
}

// 删除京东订单推送
export function delBizJdkyOrder(id) {
  return request({
    url: "/biz/bizJdkyOrder/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizJdkyOrder/findMaxSort",
    method: "get"
  });
}
// 导出京东订单推送
export function exportBizJdkyOrder(query) {
  return request({
    url: "/biz/bizJdkyOrder/export",
    method: "get",
    params: query
  });
}
